<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="telephone=no" name="format-detection"/>
    <meta name="renderer" content="webkit">
    <title>{{title}}</title>
    <meta name="keywords" content="{{settings.keywords}}"/>
    <meta name="description" content="{{settings.description}}"/>

    <link rel="apple-touch-icon" sizes="57x57" href="http://a5.xcworld.cn/apple-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="60x60" href="http://a5.xcworld.cn/apple-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="72x72" href="http://a5.xcworld.cn/apple-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="76x76" href="http://a5.xcworld.cn/apple-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="114x114" href="http://a5.xcworld.cn/apple-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="120x120" href="http://a5.xcworld.cn/apple-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="144x144" href="http://a5.xcworld.cn/apple-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="152x152" href="http://a5.xcworld.cn/apple-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="http://a5.xcworld.cn/apple-icon-180x180.png">
    <link rel="icon" type="image/png" sizes="192x192" href="http://a5.xcworld.cn/android-icon-192x192.png">
    <link rel="icon" type="image/png" sizes="32x32" href="http://a5.xcworld.cn/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="96x96" href="http://a5.xcworld.cn/favicon-96x96.png">
    <link rel="icon" type="image/png" sizes="16x16" href="http://a5.xcworld.cn/favicon-16x16.png">
    <link rel="manifest" href="http://a5.xcworld.cn/manifest.json">
    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-TileImage" content="http://a5.xcworld.cn/ms-icon-144x144.png">
    <meta name="theme-color" content="#ffffff">

    <link rel="stylesheet" href="{{or settings.cdn ''}}/css/font-awesome.css">
    <link rel="stylesheet" href="{{or settings.cdn ''}}/weui/lib/weui.min.css">
    <link rel="stylesheet" href="{{or settings.cdn ''}}/weui/css/jquery-weui.min.css"/>

    <!-- build:css /css/frontstyle.css -->
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/flex.css"/>
    <link rel="stylesheet" href="/css/style.css"/>
    <link rel="stylesheet" href="/css/taoke.css"/>
    <!-- endbuild -->
</head>
<body>

{{{body}}}

<script src="{{or settings.cdn ''}}/weui/lib/jquery-2.1.4.js"></script>
<script src="{{or settings.cdn ''}}/weui/js/jquery-weui.js"></script>
<script src="{{or settings.cdn ''}}/weui/js/swiper.min.js"></script>
<script src="{{or settings.cdn ''}}/js/jquery.lazyload.min.js"></script>
<script src="{{or settings.cdn ''}}/js/jquery.toTop.min.js"></script>

{{#if_eq page 'detail'}}
    <script src="{{or settings.cdn ''}}/js/clipboard.js"></script>
    <script src="{{or settings.cdn ''}}/js/Chart.bundle.js"></script>
{{/if_eq}}
{{#if_eq page 'partner_withdraws'}}
    <script src="{{or settings.cdn ''}}/js/clipboard.js"></script>
{{/if_eq}}
{{#if_eq page 'partner_agency'}}
    <script src="{{or settings.cdn ''}}/js/clipboard.js"></script>
{{/if_eq}}

<!-- build:js /js/frontscripts.js -->
<script src="/js/taoke.js"></script>
<!-- endbuild -->

{{#if shareUrl}}
    <script src="{{or settings.cdn ''}}/js/jweixin-1.2.0.js"></script>
    <script>
        try {
            var fxdata = {
                title: '{{title}}',
                imgUrl: '{{settings.logo}}',
                desc: '{{settings.description}}',
                link: '{{{shareUrl}}}'
            };
            $.get('/api/public/v1/app/wechat_js_config?url=' + encodeURIComponent(location.href), function (result) {
                if (result.success) {
                    wx.config(result.data);
                    wx.ready(function () {
                        wx.onMenuShareTimeline(fxdata);
                        wx.onMenuShareAppMessage(fxdata);
                    });
                }
            });
        } catch (e) {
        }
    </script>
{{/if}}
{{{settings.analyze_code}}}
</body>
</html>